<?php
/**
 * 系统公共配置
 *
 * 各子模块共用的配置项
 * @author: yanxs <541139655@qq.com>
 * @version: 1.0
 * @date: 2021/3/8
 */
return [
    'default_page_limit'  => 10,
    'page_limit'  => 10,
    'report_down_type'    => 'sync', //sync 同步 queue 队列
    'sys_name' => [
        'backend'   => '全刷管理平台',
        'api'       => '接口平台',
    ],

    'log'    => [  //日志配置
        'default'         => 'mongo',  //mongo mysql file elasticsearch四种方式
        'default_table'   => 'runtime_log',  //默认mysql表/file文件目录/mongodb集合/elasticsearch索引
        'exception_table' => 'exception_log', // 业务异常mysql表/file文件目录/mongodb集合/elasticsearch索引
    ],
    'elasticsearch' => [
        "host"  =>  env('ELASTIC_HOST').':'.env('ELASTIC_PORT')
    ],
    'no_need_right' => [  //无需检查权限的路由
        "/tips_success",
        "/tips_warn",
        "/logout",
        "/"
    ],
    'sys_style' => [
        "1" => "清爽蓝" //蓝色
    ],
    'captcha' => [  //普通图形文字验证码
        'isOpen'    =>  false,  //是否开启
        'seKey'     =>  'yxsyzm',   // 验证码加密密钥
        'codeSet'   =>  '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
        'expire'    =>  1800, //过期时间
        'useZh'     =>  false,
        'zhSet'     => '们以我到他会作时要动国产的一是工就年阶义发成部民可出能方进在了不和有大这主中人上为来问比展那它最及外没看治提五解系林者米群头意只明四道马认次文通但条较克又公孔领军流入接席位情运器并飞原油放立题质指西持总料连任志观调七么山程百报更见必真保热委手改管处己将修支识病象几先老光专什六型具示复安带每东增则完风回南广劳轮科北打积车计给节做务被整联步磨族火段算适讲按值美态黄易彪服早班麦削信排台声该击素张密害侯草何树肥继右属市严径螺检左页抗苏',
        'useImgBg'  =>  false,
        'fontSize'  =>  40,
        'useCurve'  =>  true,
        'useNoise'  =>  true,
        'imageH'    =>  0,
        'imageW'    =>  0,
        'length'    =>  4,
        'fontPath'  => public_path()."/assets/verify",
        'fontttf'   =>  "",
        'bg'        =>  [243, 251, 254],
        'reset'     =>  true,
    ],
    'pay_conf' => [
        'balance' => [
            'name' => '余额支付',
            'flag' => 'balance',
            'img'  => '/images/site/ye.png'
        ],
        'wechat'  => [
            'name' => '微信支付',
            'flag' => 'wechat',
            'img'  => '/images/site/wx.png'
        ],
        'alipay'  => [
            'name' => '支付宝支付',
            'flag' => 'alipay',
            'img'  => '/images/site/zfb.png'
        ]
    ],
    'image_path' => env("STATIC_IMG_PATH"),   //静态资资源文件
    'upload_url' => "http://".env("STATIC_URL")."/share/upload",
    'static_url' => "http://".env("STATIC_URL")."/upload/",
    'upload_file_path' => env("UPLOAD_FILE_PATH"),   //上传文件目录
    'static_ver' => env("STATIC_VER"),

    'member_lv' => [
        1 => "黄金",
        2 => "钻石"
    ]
];

